﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using Newtonsoft.Json;

namespace Business.Solr {
    /// <summary>
    /// solr查询响应
    /// </summary>
    public class SolrResponse<T> {

        [JsonProperty("responseHeader")]
        public SolrResponseHeader Header {
            get;
            set;
        }

        [JsonProperty("error")]
        public SolrResponseError Error {
            get;
            set;
        }

        [JsonProperty("response")]
        public SolrResponseDocs<T> Docs {
            get;
            set;
        }

        [JsonProperty("facet_counts")]
        public SolrResponseFacet Facet {
            get;
            set;
        }

        [JsonProperty("highlighting")]
        public IDictionary<string, IDictionary<string, string[]>> Highlighting {
            get;
            set;
        }
    }
}
